var refTree;
var panelContent;
var homeTab, refTab, examplesTab,codeTab,groupTab;

window.addEvent('load', function() {
	var toolbarContainer = new Jx.Toolbar.Container({
        scroll: false, 
        autoSize: true
    }).addTo('content');
    
    var toolbar = new Jx.Toolbar();
    toolbarContainer.add(toolbar);
    
    /* create the main navigation tabs */
    homeTab = new Jx.Button.Tab({
        label: '系统公告', 
        onDown: function() {
            window.parent.main.location.href = '<%=request.getContextPath()%>/indicate.do';
        }
    });
    examplesTab = new Jx.Button.Tab({
        label: '内容管理', 
        onDown: function() {
            window.parent.main.location.href = 'http://www.google.com';
        }
    });
    refTab = new Jx.Button.Tab({
        label: '私房日记管理', 
        onDown: function() {
            window.parent.main.location.href = 'http://www.baidu.com';
        }
    });
    codeTab = new Jx.Button.Tab({
        label: '生活联盟管理', 
        onDown: function() {
            window.parent.main.location.href = 'http://code.google.com/p/jxlib/';
        }
    });
    groupTab = new Jx.Button.Tab({
        label: '系统设置', 
        onDown: function() {
            window.parent.main.location.href = 'http://groups.google.com/group/jxlib';
        }
    });
    new Jx.TabSet('tabset').add(homeTab, refTab, examplesTab, codeTab, groupTab);
    toolbar.add(homeTab, examplesTab, refTab, codeTab, groupTab);
});